package com.weipai.education.mapper;

import com.weipai.education.model.Customer;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CustomerMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Map<String,Object>> list(@Param("start") Integer start, 
                                  @Param("end") Integer size, 
                                  @Param("key") String key,
                                  @Param("userId") String userId);

    Integer listAmount(@Param("key") String key, @Param("userId") String userId);

    Map<String,Object> getCustomerInfo(String customerId);
}